<?php /* Smarty version Smarty-3.1.14, created on 2014-12-11 17:09:32
         compiled from "..\templates\posts\posts_list.tpl" */ ?>
<?php /*%%SmartyHeaderCode:2881854896d5cc3fa29-38516011%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '5661c0fa6d644158882804dfa6c66992d36f246a' => 
    array (
      0 => '..\\templates\\posts\\posts_list.tpl',
      1 => 1412612971,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '2881854896d5cc3fa29-38516011',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'notice' => 0,
    'read_list' => 0,
    'k' => 0,
    'read' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.14',
  'unifunc' => 'content_54896d5cd55365_64658186',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_54896d5cd55365_64658186')) {function content_54896d5cd55365_64658186($_smarty_tpl) {?><?php if (!is_callable('smarty_modifier_date_format')) include 'C:\\wamp\\www\\shop_baby\\libraries\\smarty\\plugins\\modifier.date_format.php';
?><div id="content">
  <div id="content-header">
    <div id="breadcrumb"> <a href="#" title="Go to Home" class="tip-bottom"><i class="icon-home"></i> Home</a> 
    <a href="#" class="current">Danh sách bài viết</a></div>
     
  </div>
  <?php echo $_smarty_tpl->tpl_vars['notice']->value;?>

  <div class="container-fluid">
    <div class="row-fluid">
      <div class="span12">
      <form action="posts_delete_all.php" method="post">
        <div class="widget-box">
       
          <div class="widget-title">
         
           <div class="buttons" style="position:absolute;right:170px">
	       <a title="Icon Title" class="btn btn-mini" href="posts_add.php"><i class="icon-shopping-cart"></i>Thêm Danh Sách</a>							
        </div>
            <span class="icon" ><i class="icon-trash" style="width:20px;"></i><input class="btn btn-mini" type="submit" value="Xóa" style="border-radius:50px;"/></span>
            <h5>Giới thiệu [Danh sách]</h5>
          </div>
          
             
            <table class="table table-bordered data-table">
              <thead >
                <tr>
                    <th>
                   
                        <input type="checkbox" />
                   
                    </th>
                  <th>Mã</th>
                  <th>Hình</th>
                  <th>Tiêu Đề</th>
                  <th>Thể loại</th>
                  <th>Loại tin</th>
                  <th>Ngày Tạo</th>
                  <th>Lược xem</th>
                  <th>Nổi bật</th>
                  <th>Trạng Thái</th>
                  <th>Thao Tác</th>
                  
                </tr>
              </thead>
            
               
              <tbody >
               <?php  $_smarty_tpl->tpl_vars['read'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['read']->_loop = false;
 $_smarty_tpl->tpl_vars['k'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['read_list']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['read']->key => $_smarty_tpl->tpl_vars['read']->value){
$_smarty_tpl->tpl_vars['read']->_loop = true;
 $_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['read']->key;
?>
               <?php if ($_smarty_tpl->tpl_vars['k']->value==0){?>
                <tr class="gradeX" style="background:#A9B9CB">
                <?php }?>
                <td style="text-align:center">
                   
                        <input type="checkbox" name="data[<?php echo $_smarty_tpl->tpl_vars['read']->value['id'];?>
]" value="<?php echo $_smarty_tpl->tpl_vars['read']->value['id'];?>
" />
                    
                    </td>
               	  <td><?php echo $_smarty_tpl->tpl_vars['read']->value['id'];?>
</td>
                  <td><img src="/upload/<?php if ($_smarty_tpl->tpl_vars['read']->value['image']!=''){?>posts/<?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['read']->value['day_time'],'%m-%Y');?>
/<?php echo $_smarty_tpl->tpl_vars['read']->value['image'];?>
<?php }else{ ?>icon/no-avatar.jpg<?php }?>" style="max-width:40px" /></td>
                  <td><?php echo $_smarty_tpl->tpl_vars['read']->value['post_name'];?>
</td>
                  <td><?php echo $_smarty_tpl->tpl_vars['read']->value['category_name'];?>
</td>
                  <td><?php if ($_smarty_tpl->tpl_vars['read']->value['type_category']==0){?>Tin Tức<?php }else{ ?>Thông Tin<?php }?></td>
                  <td><?php echo $_smarty_tpl->tpl_vars['read']->value['day_time'];?>
</td>
                  <td class="center"><?php echo $_smarty_tpl->tpl_vars['read']->value['views'];?>
</td>
                  <td >
                    <a href="posts_update_highlights.php?id=<?php echo $_smarty_tpl->tpl_vars['read']->value['id'];?>
"><i class="icon icon-eye-<?php if ($_smarty_tpl->tpl_vars['read']->value['highlights']==1){?>open<?php }else{ ?>close<?php }?>"></i></a>
                  </td>
                  <td><a href="posts_update_status.php?id=<?php echo $_smarty_tpl->tpl_vars['read']->value['id'];?>
"><i class="icon-<?php if ($_smarty_tpl->tpl_vars['read']->value['status']==1){?>ok<?php }else{ ?>remove<?php }?>"></i></a></td>
               
                  <td class="center">
                  		<a href="posts_update.php?id=<?php echo $_smarty_tpl->tpl_vars['read']->value['id'];?>
"><i class="icon icon-pencil"></i></a>
                        <a href="posts_delete.php?id=<?php echo $_smarty_tpl->tpl_vars['read']->value['id'];?>
"><i class="icon icon-remove"></i></a>
                  </td>
                  
                </tr>

                <?php } ?>
              </tbody>
              
            </table>
           
          </div>
           </form>
        </div>
        
        
        
        
      </div>
    </div>
  </div>
<?php }} ?>